package com.zlt.appparking.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AppointmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AppointmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApIdIsNull() {
            addCriterion("ap_id is null");
            return (Criteria) this;
        }

        public Criteria andApIdIsNotNull() {
            addCriterion("ap_id is not null");
            return (Criteria) this;
        }

        public Criteria andApIdEqualTo(Long value) {
            addCriterion("ap_id =", value, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdNotEqualTo(Long value) {
            addCriterion("ap_id <>", value, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdGreaterThan(Long value) {
            addCriterion("ap_id >", value, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ap_id >=", value, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdLessThan(Long value) {
            addCriterion("ap_id <", value, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdLessThanOrEqualTo(Long value) {
            addCriterion("ap_id <=", value, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdIn(List<Long> values) {
            addCriterion("ap_id in", values, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdNotIn(List<Long> values) {
            addCriterion("ap_id not in", values, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdBetween(Long value1, Long value2) {
            addCriterion("ap_id between", value1, value2, "apId");
            return (Criteria) this;
        }

        public Criteria andApIdNotBetween(Long value1, Long value2) {
            addCriterion("ap_id not between", value1, value2, "apId");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeIsNull() {
            addCriterion("ap_order_time is null");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeIsNotNull() {
            addCriterion("ap_order_time is not null");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeEqualTo(Date value) {
            addCriterion("ap_order_time =", value, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeNotEqualTo(Date value) {
            addCriterion("ap_order_time <>", value, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeGreaterThan(Date value) {
            addCriterion("ap_order_time >", value, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ap_order_time >=", value, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeLessThan(Date value) {
            addCriterion("ap_order_time <", value, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeLessThanOrEqualTo(Date value) {
            addCriterion("ap_order_time <=", value, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeIn(List<Date> values) {
            addCriterion("ap_order_time in", values, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeNotIn(List<Date> values) {
            addCriterion("ap_order_time not in", values, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeBetween(Date value1, Date value2) {
            addCriterion("ap_order_time between", value1, value2, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApOrderTimeNotBetween(Date value1, Date value2) {
            addCriterion("ap_order_time not between", value1, value2, "apOrderTime");
            return (Criteria) this;
        }

        public Criteria andApStartIsNull() {
            addCriterion("ap_start is null");
            return (Criteria) this;
        }

        public Criteria andApStartIsNotNull() {
            addCriterion("ap_start is not null");
            return (Criteria) this;
        }

        public Criteria andApStartEqualTo(Date value) {
            addCriterion("ap_start =", value, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartNotEqualTo(Date value) {
            addCriterion("ap_start <>", value, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartGreaterThan(Date value) {
            addCriterion("ap_start >", value, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartGreaterThanOrEqualTo(Date value) {
            addCriterion("ap_start >=", value, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartLessThan(Date value) {
            addCriterion("ap_start <", value, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartLessThanOrEqualTo(Date value) {
            addCriterion("ap_start <=", value, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartIn(List<Date> values) {
            addCriterion("ap_start in", values, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartNotIn(List<Date> values) {
            addCriterion("ap_start not in", values, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartBetween(Date value1, Date value2) {
            addCriterion("ap_start between", value1, value2, "apStart");
            return (Criteria) this;
        }

        public Criteria andApStartNotBetween(Date value1, Date value2) {
            addCriterion("ap_start not between", value1, value2, "apStart");
            return (Criteria) this;
        }

        public Criteria andApDurationIsNull() {
            addCriterion("ap_duration is null");
            return (Criteria) this;
        }

        public Criteria andApDurationIsNotNull() {
            addCriterion("ap_duration is not null");
            return (Criteria) this;
        }

        public Criteria andApDurationEqualTo(Integer value) {
            addCriterion("ap_duration =", value, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationNotEqualTo(Integer value) {
            addCriterion("ap_duration <>", value, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationGreaterThan(Integer value) {
            addCriterion("ap_duration >", value, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("ap_duration >=", value, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationLessThan(Integer value) {
            addCriterion("ap_duration <", value, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationLessThanOrEqualTo(Integer value) {
            addCriterion("ap_duration <=", value, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationIn(List<Integer> values) {
            addCriterion("ap_duration in", values, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationNotIn(List<Integer> values) {
            addCriterion("ap_duration not in", values, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationBetween(Integer value1, Integer value2) {
            addCriterion("ap_duration between", value1, value2, "apDuration");
            return (Criteria) this;
        }

        public Criteria andApDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("ap_duration not between", value1, value2, "apDuration");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNull() {
            addCriterion("au_id is null");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNotNull() {
            addCriterion("au_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuIdEqualTo(String value) {
            addCriterion("au_id =", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotEqualTo(String value) {
            addCriterion("au_id <>", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThan(String value) {
            addCriterion("au_id >", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThanOrEqualTo(String value) {
            addCriterion("au_id >=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThan(String value) {
            addCriterion("au_id <", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThanOrEqualTo(String value) {
            addCriterion("au_id <=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLike(String value) {
            addCriterion("au_id like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotLike(String value) {
            addCriterion("au_id not like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdIn(List<String> values) {
            addCriterion("au_id in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotIn(List<String> values) {
            addCriterion("au_id not in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdBetween(String value1, String value2) {
            addCriterion("au_id between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotBetween(String value1, String value2) {
            addCriterion("au_id not between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNull() {
            addCriterion("pl_id is null");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNotNull() {
            addCriterion("pl_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlIdEqualTo(Integer value) {
            addCriterion("pl_id =", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotEqualTo(Integer value) {
            addCriterion("pl_id <>", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThan(Integer value) {
            addCriterion("pl_id >", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pl_id >=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThan(Integer value) {
            addCriterion("pl_id <", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThanOrEqualTo(Integer value) {
            addCriterion("pl_id <=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdIn(List<Integer> values) {
            addCriterion("pl_id in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotIn(List<Integer> values) {
            addCriterion("pl_id not in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdBetween(Integer value1, Integer value2) {
            addCriterion("pl_id between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pl_id not between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andApDepositIsNull() {
            addCriterion("ap_deposit is null");
            return (Criteria) this;
        }

        public Criteria andApDepositIsNotNull() {
            addCriterion("ap_deposit is not null");
            return (Criteria) this;
        }

        public Criteria andApDepositEqualTo(BigDecimal value) {
            addCriterion("ap_deposit =", value, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositNotEqualTo(BigDecimal value) {
            addCriterion("ap_deposit <>", value, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositGreaterThan(BigDecimal value) {
            addCriterion("ap_deposit >", value, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ap_deposit >=", value, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositLessThan(BigDecimal value) {
            addCriterion("ap_deposit <", value, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ap_deposit <=", value, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositIn(List<BigDecimal> values) {
            addCriterion("ap_deposit in", values, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositNotIn(List<BigDecimal> values) {
            addCriterion("ap_deposit not in", values, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ap_deposit between", value1, value2, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApDepositNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ap_deposit not between", value1, value2, "apDeposit");
            return (Criteria) this;
        }

        public Criteria andApStateIsNull() {
            addCriterion("ap_state is null");
            return (Criteria) this;
        }

        public Criteria andApStateIsNotNull() {
            addCriterion("ap_state is not null");
            return (Criteria) this;
        }

        public Criteria andApStateEqualTo(Byte value) {
            addCriterion("ap_state =", value, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateNotEqualTo(Byte value) {
            addCriterion("ap_state <>", value, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateGreaterThan(Byte value) {
            addCriterion("ap_state >", value, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("ap_state >=", value, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateLessThan(Byte value) {
            addCriterion("ap_state <", value, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateLessThanOrEqualTo(Byte value) {
            addCriterion("ap_state <=", value, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateIn(List<Byte> values) {
            addCriterion("ap_state in", values, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateNotIn(List<Byte> values) {
            addCriterion("ap_state not in", values, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateBetween(Byte value1, Byte value2) {
            addCriterion("ap_state between", value1, value2, "apState");
            return (Criteria) this;
        }

        public Criteria andApStateNotBetween(Byte value1, Byte value2) {
            addCriterion("ap_state not between", value1, value2, "apState");
            return (Criteria) this;
        }

        public Criteria andApNoIsNull() {
            addCriterion("ap_no is null");
            return (Criteria) this;
        }

        public Criteria andApNoIsNotNull() {
            addCriterion("ap_no is not null");
            return (Criteria) this;
        }

        public Criteria andApNoEqualTo(String value) {
            addCriterion("ap_no =", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoNotEqualTo(String value) {
            addCriterion("ap_no <>", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoGreaterThan(String value) {
            addCriterion("ap_no >", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoGreaterThanOrEqualTo(String value) {
            addCriterion("ap_no >=", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoLessThan(String value) {
            addCriterion("ap_no <", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoLessThanOrEqualTo(String value) {
            addCriterion("ap_no <=", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoLike(String value) {
            addCriterion("ap_no like", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoNotLike(String value) {
            addCriterion("ap_no not like", value, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoIn(List<String> values) {
            addCriterion("ap_no in", values, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoNotIn(List<String> values) {
            addCriterion("ap_no not in", values, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoBetween(String value1, String value2) {
            addCriterion("ap_no between", value1, value2, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoNotBetween(String value1, String value2) {
            addCriterion("ap_no not between", value1, value2, "apNo");
            return (Criteria) this;
        }

        public Criteria andApNoStateIsNull() {
            addCriterion("ap_no_state is null");
            return (Criteria) this;
        }

        public Criteria andApNoStateIsNotNull() {
            addCriterion("ap_no_state is not null");
            return (Criteria) this;
        }

        public Criteria andApNoStateEqualTo(Byte value) {
            addCriterion("ap_no_state =", value, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateNotEqualTo(Byte value) {
            addCriterion("ap_no_state <>", value, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateGreaterThan(Byte value) {
            addCriterion("ap_no_state >", value, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("ap_no_state >=", value, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateLessThan(Byte value) {
            addCriterion("ap_no_state <", value, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateLessThanOrEqualTo(Byte value) {
            addCriterion("ap_no_state <=", value, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateIn(List<Byte> values) {
            addCriterion("ap_no_state in", values, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateNotIn(List<Byte> values) {
            addCriterion("ap_no_state not in", values, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateBetween(Byte value1, Byte value2) {
            addCriterion("ap_no_state between", value1, value2, "apNoState");
            return (Criteria) this;
        }

        public Criteria andApNoStateNotBetween(Byte value1, Byte value2) {
            addCriterion("ap_no_state not between", value1, value2, "apNoState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
